<ion-view view-title="我的收藏">
	<ion-nav-bar ng-class="baseclass">
		<ion-nav-back-button></ion-nav-back-button>
	</ion-nav-bar>
	
	<div class="bar bar-subheader bar-toper">
		<div class="row classify">
			<div class="col col-50" on-tap="activeSlide(0)" ng-class="data.selectIndex==0?'top-activated':''">
				商品收藏
			</div>
			<div class="col col-50" on-tap="activeSlide(1)" ng-class="data.selectIndex==1?'top-activated':''">
				店铺收藏
			</div>
		</div>
	</div>
	

	<!--描述：滑动块-->
	<ion-content scroll="false" class="has-subheader">
		<ion-slide-box delegate-handle="tab-handle" on-touch="onTouch()" on-release="onRelease()" draw-slide="false" on-slide-changed="slideChanged(index)" active-slide="slideIndex" show-pager="false">
			<ion-slide>
				<ion-scroll delegate-handle="scroll0" direction="y" ng-style="myObj" lazy-scroll>
					<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
					<div class="list list-inset" style="margin-top: 10px;">
						<div class="item item-thumbnail-left padding-right" style="padding-bottom: 8px;" on-tap="onshow_detail(item.goods_id)" ng-repeat='item in data.goods.list'>
							<img ng-src="{{item.thumbnail_pic || item.image_default_id}}">
							<div class="row padding-0">
						 		<div class="col-67 ellipsis-2 font-middle-my">
					 				{{item.name}}
						 		</div>
						 		<div class="col-33 text-right font-middle-my">
						 			<span ng-if="item.marketable=='true'">￥{{item.price}}</span>
						 			<span ng-if="item.marketable=='false'">失效</span>
						 		</div>
						 	</div>
							<p class="font-middle-my">
								<span on-tap="onshow_first(item.store_id,$event)"><img src="./img/guilin/other/shop_icon.png" style="vertical-align:text-bottom;width: 0.7rem;"/>&nbsp;{{item.store_name}}</span>
								<i class='ion-trash-a assertive font-1rem-my right-zhang' on-tap='delete_favo($index, 0, $event)'></i>
							</p>
							<!--<p class="font-middle-my">
								<i class='ion-trash-a assertive font-1rem-my right-zhang' on-tap='delete_favo($index, 0, $event)'></i>
							</p>-->
							<p class="font-middle-my">收藏：{{item.fav_count}}人<span class='right-zhang font-small-my'>{{item.create_time}} 收藏</span></p>
						</div>
					</div>
					<ion-infinite-scroll ng-if="!isLoad && !data.goods.isend" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
					<div style='height: 40px;'></div>
				</ion-scroll>
			</ion-slide>

			<ion-slide>
				<ion-scroll delegate-handle="scroll1" direction="y" ng-style="myObj" lazy-scroll>
					<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
					<div class="list list-inset" style="margin-top: 10px;">
						<div class="item item-thumbnail-left" style="padding-bottom: 8px;" on-tap="onshow_first(item.store_id,$event)" ng-repeat='item in data.store.list' ng-if="item.store_id">
							<img ng-src="{{item.thumbnail_pic || item.image_default_id}}">
							<p class="ellipsis"><i class="icon ion-home positive font-large-my"></i>&nbsp;{{item.store_name}}</p>
							<div class='level'>
								<div class="shop_grade grade{{item.level}} left-zhang"></div>
								<i class='ion-trash-a assertive font-1rem-my right-zhang' on-tap='delete_favo($index, 1, $event)'></i>
							</div>
							<div class="clearfix"></div>
							<p class="font-middle-my margin-top-10-my">收藏：{{item.fav_count}}人<span class='right-zhang font-small-my'>{{item.create_time}} 收藏</span></p>
						</div>
					</div>
					<ion-infinite-scroll ng-if="!isLoad && !data.store.isend" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
					<div style='height: 40px;'></div>
				</ion-scroll>
			</ion-slide>
			
		</ion-slide-box>
	</ion-content>
</ion-view>